# Contributor: Michał Polański <michal@polanski.me>
# Maintainer: Michał Polański <michal@polanski.me>
pkgname=clevis-extra-pins
pkgver=0_git20220328
_gitrev=4f94523e7d17340a52afe59bd74c102269fe3641
pkgrel=0
pkgdesc="Additional pins for Clevis binding framework"
url="https://github.com/anatol/clevis.go"
license="GPL-3.0-or-later"
arch="noarch !s390x !riscv64" # blocked by clevis
depends="bash clevis"
source="https://github.com/anatol/clevis.go/archive/$_gitrev/clevis-extra-pins-$pkgver.tar.gz"
builddir="$srcdir/clevis.go-$_gitrev"
options="!check" # no test suite for bash scripts

package() {
	install -Dm755 \
		clevis-decrypt-yubikey \
		clevis-encrypt-yubikey \
		clevis-encrypt-remote \
		-t "$pkgdir"/usr/bin/
}	

sha512sums="
8b6e7dafc5c537fddea136034dbfe0e2ee29abffc73ddfb6a5b238ce400c6757f14770900ddf47c740020db60d9612dc3716cf41011111d236beb27eb3e483ab  clevis-extra-pins-0_git20220328.tar.gz
"
